package com.sne.airways.system.dao;

import com.sne.airways.system.pojo.TdOperation;

import java.util.Set;

/**
 * Created by IntelliJ IDEA.
 * User: skyline
 * Date: 12-2-13
 * Time: 下午3:25
 * To change this template use File | Settings | File Templates.
 */
public interface OperationDAO {
    /**
     * 根据资菜单ID 返回权限菜单列表
     * @param userNo
     * @param operationId
     * @param status
     * @return
     */
    public Set<TdOperation> queryPrivateChildTree(String userNo,String operationId, String status);

    /**
     * 根据资菜单ID 返回所有菜单列表
     * @param operationId
     * @param status
     * @return
     */
    public Set<TdOperation> queryChildTree(String operationId, String status);

    /**
     * 根据菜单ID和菜单状态 返回菜单列表
     * @param operationId
     * @param status
     * @return
     */
    public Set<TdOperation> queryOperationTree(String operationId,String status);

    /**
     * 更改菜单排序
     * @param operationId
     * @param parentId
     * @param menuIndex
     * @param menuLevel
     * @param oldParentId
     * @param oldMenuIndex
     * @param oldMenuLevel
     * @param version
     * @return
     */
    public String changeBeforeIndex(String operationId, String parentId, int menuIndex, int menuLevel, String oldParentId, int oldMenuIndex, int oldMenuLevel,int version);
    public String changeAfterIndex(String operationId, String parentId, int menuIndex, int menuLevel, String oldParentId, int oldMenuIndex, int oldMenuLevel,int version);
    public String changeCurrentIndex(String operationId, String parentId, int menuIndex, int menuLevel, String oldParentId, int oldMenuIndex, int oldMenuLevel,int version);
    public String changeIndex(String operationId, String parentId, int menuIndex, int menuLevel, String oldParentId, int oldMenuIndex, int oldMenuLevel,int version);
    /**
     * 查询菜单是否重复
     * @param operationId
     * @param menuName
     * @param status
     * @return
     */
    public Integer queryOperationIsRepeat(String operationId,String menuName,String status);
}
